/*
package com.runfast.waimai.web.controller.Driver_controller;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;


@Component
@Controller
@RequestMapping("/shopper/*")
public class RabbitController {
    @Resource
    private AmqpTemplate rabbitTemplate;
    @RabbitListener(queues = "hello")
    @PostMapping("hellp")
    public @ResponseBody ModelMap Hellp(String hello) {
        ModelMap modelMap=new ModelMap();
      rabbitTemplate.convertSendAndReceive(hello);
        modelMap.put("msg",hello);
        return  modelMap;
    }

}
*/
